package com.lin.mptest.service.db2.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lin.mptest.entity.db2.TestB;
import com.lin.mptest.mapper.db2.TestBMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Slf4j
@Transactional(rollbackFor = Exception.class)
@DS("slave_1")
public class TestBServiceImpl extends ServiceImpl<TestBMapper, TestB> implements com.lin.mptest.service.db2.ITestBService {

    @Override
    public List<TestB> getAll(){
        return this.list();
    }
}
